﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Themes/Default/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Themes/Default/Scripts/jquery-1.4.4.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Themes/Default/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Themes/Default/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Themes/Default/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Themes/Default/Scripts/MicrosoftAjax.debug.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Themes/Default/Scripts/MicrosoftMvcAjax.debug.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>
                    @Html.ActionLink("Blog do 100loop.com", "Index", "Post")
                </h1>
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li>@Html.ActionLink("Início", "Index", "Post")</li>
                    <li>@Html.ActionLink("Comentários", "Index", "Comment")</li>
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
            <div id="footer">
                <h3>
                    Envio de Temas</h3>
                @using (Html.BeginForm("FileUpload", "Post", FormMethod.Post, new { enctype = "multipart/form-data" }))
                {
                    @Html.ValidationSummary(true, "Não foi possível fazer o cadastro. Corrija os erros e tente novamente.")
                    <div>
                        <fieldset>
                            <legend>Tema</legend>
                            <div class="editor-field">
                                <input type="file" name="Views" size="4" />
                            </div>
                            <p>
                                <input type="submit" value="Enviar" />
                            </p>
                        </fieldset>
                    </div>
                }
                @Html.Action("Themes", "Post")
            </div>
        </div>
    </div>
</body>
</html>
